#include "precomp.h"

#pragma once

#include "Character.h"

class Player : public Character{
public:
	Player(const char* image_path, CL_GraphicContext *gc, CL_InputContext *ic, Map *map, char map_sign);

	void tick(float delta_time);

	void draw();

protected:
	void onMouseUp(const CL_InputEvent &key, const CL_InputState &state);

	void handle_input(float delta_time);

	CL_InputContext *_ic;
	CL_InputDevice *_mouse, *_keyboard;

private:
	CL_Slot slotMouseDown;
	CL_Slot slotMouseUp;
};